package client

import (
	"bufio"
	"fmt"
	"net"
	"os"
)


type User struct {
	Number   string
	Password string

}

func main() {
	conn, err := net.Dial("tcp", "localhost:8000")
	if err != nil {
		fmt.Println("连接建立失败", err)
	}
	defer conn.Close()
	var number string
	var password string

	fmt.Println("请输入账号和密码")
	fmt.Scanf("%s,%s", &number, &password)
	loginInfo := &User{
		Number:number,
		Password:password,
	}

	loginInfo.doLogin(conn)
}

